/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jumpstart.util;

import java.util.Date;
import org.joda.time.DateMidnight;
import org.joda.time.LocalDate;

/**
 *
 * @author hue
 */
public class JodaTimeUtil {
    
    public static DateMidnight toDateMidnight(Date d) {
        return new DateMidnight(d.getTime());
    }
    
    public static Date toJavaDate(DateMidnight d) {
        return new Date(d.getMillis());
    }
    
    public static Date toJavaDate(LocalDate ld) {
        return null;
    }
    
    public static LocalDate toLocalDate(Date d) {
        return new LocalDate(d.getTime());
    }
}
